package com.dlsy.ygj.dao.vindicateData.impl;

import java.util.List;

import org.hibernate.Criteria;
import org.hibernate.criterion.Restrictions;

import net.taobaoge.common.framework.dao.impl.BaseDAOImpl;

import com.dlsy.ygj.dao.vindicateData.IDesignateTimeChargeInfoDAO;
import com.dlsy.ygj.entity.DesignateTimeCharge;

public class DesignateTimeChargeInfoDAO extends BaseDAOImpl<DesignateTimeCharge> implements IDesignateTimeChargeInfoDAO{

	public List<DesignateTimeCharge> findDesignateTimeChargeByID(int ID) {
		// TODO Auto-generated method stub
		return null;
	}

	public List<DesignateTimeCharge> findDesignateTimeChargeByName(String value) {
		Criteria  criteria=getSession().createCriteria(DesignateTimeCharge.class);
		criteria.add(Restrictions.like("chooseItem", value));
		List<DesignateTimeCharge> DesignateTimeChargeList=criteria.list();
		if(DesignateTimeChargeList !=null && DesignateTimeChargeList.size()>0){
			return DesignateTimeChargeList;
		}
		return null;
	}
	
}
